

<form nz-form #validateForm="ngForm" (ngSubmit)="submitForm()" nzLayout="horizontal" autocomplete="off">
    <!-- 模态框头部 -->
    <div class="modal-header">
        <div class="modal-title">
            <i class="anticon anticon-medicine-box mr-sm"></i>
            <span *ngIf="entity.id">{{l('Edit')}}</span>
            <span *ngIf="!entity.id">{{l('Create')}}</span>
        </div>
    </div>
    <!-- 模态框内容 -->
    <fieldset>
        <!-- 提示信息 -->
        <!-- <nz-alert nzType="info" nzCloseable [nzShowIcon]="true" nzMessage="l('我想提示点什么内容给你说')"></nz-alert> -->
            <nz-form-item nz-row>
                    <nz-form-label nz-col [nzSm]="6" [nzXs]="24" nzRequired nzFor="lineCode">{{l('LineCode')}}</nz-form-label>
                <nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
                            <input nz-input name="lineCode" #lineCode="ngModel"
                                   [(ngModel)]="entity.lineCode"
                                   [placeholder]="l('LineCode')"  required >

                            <!-- 校验 -->
                            <nz-form-explain *ngIf="lineCode.control.dirty&&lineCode.control.errors">
                                                                <ng-container *ngIf="lineCode.control.hasError('required')">{{l('CanNotNull')}}</ng-container>
                            </nz-form-explain>

                </nz-form-control>
            </nz-form-item>
            <nz-form-item nz-row>
                    <nz-form-label nz-col [nzSm]="6" [nzXs]="24" nzRequired nzFor="lineInfo">{{l('LineInfo')}}</nz-form-label>
                <nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
                            <input nz-input name="lineInfo" #lineInfo="ngModel"
                                   [(ngModel)]="entity.lineInfo"
                                   [placeholder]="l('LineInfo')"  required >

                            <!-- 校验 -->
                            <nz-form-explain *ngIf="lineInfo.control.dirty&&lineInfo.control.errors">
                                                                <ng-container *ngIf="lineInfo.control.hasError('required')">{{l('CanNotNull')}}</ng-container>
                            </nz-form-explain>

                </nz-form-control>
            </nz-form-item>
            <nz-form-item nz-row>
                    <nz-form-label nz-col [nzSm]="6" [nzXs]="24" nzRequired nzFor="lineImage">{{l('LineImage')}}</nz-form-label>
                <nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
                            <input nz-input name="lineImage" #lineImage="ngModel"
                                   [(ngModel)]="entity.lineImage"
                                   [placeholder]="l('LineImage')"  required >

                            <!-- 校验 -->
                            <nz-form-explain *ngIf="lineImage.control.dirty&&lineImage.control.errors">
                                                                <ng-container *ngIf="lineImage.control.hasError('required')">{{l('CanNotNull')}}</ng-container>
                            </nz-form-explain>

                </nz-form-control>
            </nz-form-item>
            <nz-form-item nz-row>
                    <nz-form-label nz-col [nzSm]="6" [nzXs]="24" nzRequired nzFor="startPosition">{{l('StartPosition')}}</nz-form-label>
                <nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
                            <input nz-input name="startPosition" #startPosition="ngModel"
                                   [(ngModel)]="entity.startPosition"
                                   [placeholder]="l('StartPosition')"  required >

                            <!-- 校验 -->
                            <nz-form-explain *ngIf="startPosition.control.dirty&&startPosition.control.errors">
                                                                <ng-container *ngIf="startPosition.control.hasError('required')">{{l('CanNotNull')}}</ng-container>
                            </nz-form-explain>

                </nz-form-control>
            </nz-form-item>
            <nz-form-item nz-row>
                    <nz-form-label nz-col [nzSm]="6" [nzXs]="24" nzRequired nzFor="endPosition">{{l('EndPosition')}}</nz-form-label>
                <nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
                            <input nz-input name="endPosition" #endPosition="ngModel"
                                   [(ngModel)]="entity.endPosition"
                                   [placeholder]="l('EndPosition')"  required >

                            <!-- 校验 -->
                            <nz-form-explain *ngIf="endPosition.control.dirty&&endPosition.control.errors">
                                                                <ng-container *ngIf="endPosition.control.hasError('required')">{{l('CanNotNull')}}</ng-container>
                            </nz-form-explain>

                </nz-form-control>
            </nz-form-item>
            <nz-form-item nz-row>
                    <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="auditStatus">{{l('AuditStatus')}}</nz-form-label>
                <nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
                            <input nz-input name="auditStatus" #auditStatus="ngModel"
                                   [(ngModel)]="entity.auditStatus"
                                   [placeholder]="l('AuditStatus')" >


                </nz-form-control>
            </nz-form-item>
            <nz-form-item nz-row>
                    <nz-form-label [nzSm]="6" [nzXs]="24" nzFor="schedules">{{l('Schedules')}}</nz-form-label>
                <nz-form-control nz-col [nzSm]="14" [nzXs]="24" nzHasFeedback>
                            <nz-select name="schedules" #schedules="ngModel"
                                       [(ngModel)]="entity.schedules" nzAllowClear
                                       [nzPlaceHolder]="l('Schedules')"  style="width: 120px;">
                                <!-- your select option -->
                                <!--
                                <nz-option [nzValue]="0" nzLabel="男"></nz-option>
                                <nz-option [nzValue]="1" nzLabel="女"></nz-option>
                                -->
                                <!-- <nz-option *ngFor="let option of optionList" [nzValue]="option" [nzLabel]="option.label"></nz-option>                    -->
                            </nz-select>


                </nz-form-control>
            </nz-form-item>

    </fieldset>
    <!-- 模态框底部 -->
    <div class="modal-footer">
        <button nz-button [nzType]="'default'" type="button" (click)="close()" [disabled]="saving">
            <i class="anticon anticon-close-circle-o"></i> {{l("Cancel")}}
        </button>
        <button nz-button [nzType]="'primary'" type="submit" [disabled]="!validateForm.form.valid|| saving" [nzLoading]="saving">
            <i class="anticon anticon-save" *ngIf="!saving"></i> {{l("Save")}}
        </button>
    </div>
</form>





